<?
        require_once(__DIR__ . '/../inc/ContactInfo.php');
        $row = GetContactDetail($_REQUEST['id']);
		$customer = GetMethod($row['Customers_id'], 'Customers');
		$type = GetInfoType($row['ContactInfoType_id']);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Info Details of user: <?=$row['FirstName']?> <?=$row['LastName']?></title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>
<body>
        
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents" style="width: 625px; float: right;">
			<table class="table table-striped table-bordered table-condensed table-hover">
                	<tr>
                    	<th>Contact Information Detail</th>
                        
                    </tr>
					</table>
                <table class="table table-striped table-bordered table-condensed table-hover">
                    <tr>
						<th>Id Number</th>
                        <th>Customer Name</th>
                        <th>Info Type</th>
                        <th>Info</th>	
						<th>created_at</th>
                        <th>update_at</th>			       			
                    </tr>
                    <tr>
						<td><?=$row['id']?></td>
					    <td><?=$customer['FirstName']?> <?=$customer['LastName']?></td>
                        <td><?=$type['Type']?></td>
                        <td><?=$row['Info']?></td>
						<td><?=$row['created_at']?></td>
                        <td><?=$row['updated_at']?></td>
                     </tr>
				</table>
				
            </div>
        </div>
    </body>
</html>